 //轮播
 ltNetwork.get(configUrl.HOME_CAROUSELS_URL,'',function(res){
// 	console.log(res);
 	var data = res.data;
 	$('#slidelistTmpl').tmpl(data).appendTo('#slideList');	//图片轮播
 	
   	TouchSlide({ 
		slideCell:"#slideBox",
		titCell:".hd ul", //开启自动分页 autoPage:true ，此时设置 titCell 为导航元素包裹层
		mainCell:".bd ul", 
		effect:"left", 
		autoPlay:true,//自动播放
		autoPage:true, //自动分页
		switchLoad:"_src" //切换加载，真实图片路径为"_src" 
	});
 },function(msg){
 	console.log(msg);
 });
 
 //秒杀商品
 var seckillParam = {
 	p_page : 1,
 	p_size : 10,
 	p_sort : '',		
 	p_direction : ''		
 }
 ltNetwork.get(configUrl.HOME_SECKILLGOODS_URL,seckillParam,function(res){
   	console.log(res);
 	var data = res.data;
 	
 	var endTime = data.activity.endTime;	//结束时间
 	var todayTime = Date.parse(new Date());
 	var desTime = endTime/1000-todayTime/1000;	//剩余时间
 	
 	var timer = setInterval(function(){
 		desTime--;
 		if(desTime<=0){
 			clearInterval(timer);
 		}
 		var des = getLocalTime(new Date(desTime));
 		$('.overTime em').text(des);
 		
 	},1000);
 	
 	var goodsPageInfo = data.goodsPageInfo;
 	$('#secKillsTmpl').tmpl(goodsPageInfo.rows).appendTo('#secKillsList');
 },function(msg){
 	console.log(msg);
 });
 
 //商品类别
 ltNetwork.get(configUrl.GOODSTYPE_URL,'',function(res){
// 	console.log(res);
 	var categoryOnes = res.data.categoryOnes;
 	$('#goodtypeTmpl').tmpl(categoryOnes).appendTo('#goodtypeList');
 	var swiper2 = new Swiper('.swiper-container2', {
      slidesPerView: 5,
      slidesPerColumn: 2,
      spaceBetween: 10,
      pagination: {
        el: '.swiper-pagination',
        clickable: true,
      },
    });
 },function(msg){
 	console.log(msg);
 });
 
 //活动类型
 ltNetwork.get(configUrl.ACTIVITY_TYPE_URL,'',function(res){
// 	console.log(res);
 	var data = res.data;
 	$('#activityTmpl').tmpl(data).appendTo('#activityList');
 },function(msg){
 	console.log(msg);
 });
 
 //大牌品质
 ltNetwork.get(configUrl.RECBRAND_URL,'',function(res){
// 	console.log(res);
 	var data = res.data;
 	$('#brandTmpl').tmpl(data).appendTo('#brandList');
 },function(msg){
 	console.log(msg);
 });
	
//为你推荐
var recgoodsParam = {
	p_page:1,
	p_size:10
}
 ltNetwork.get(configUrl.RECGOODS_URL,recgoodsParam,function(res){
// 	console.log(res);
 	var rows = res.data.rows;
 	$('#recommendTmpl').tmpl(rows).appendTo('#recommendList');
 },function(msg){
 	console.log(msg);
 });